package com.winsdom.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.winsdom.dto.CategoryTreeNodes;
import com.winsdom.dto.OrganizationMegAddDTO;
import com.winsdom.dto.OrganizationMegDTO;
import com.winsdom.entity.Organization;
import com.baomidou.mybatisplus.extension.service.IService;
import com.winsdom.result.Result;
import com.winsdom.vo.OrganizationMegVO;
import com.winsdom.vo.UserAndOrgPageVo;

import java.util.List;

/**
 * <p>
 * 组织信息表 服务类
 * </p>
 *
 * @author 
 * @since 2025-05-12
 */
public interface IOrganizationService extends IService<Organization> {
    List<CategoryTreeNodes> getOrganizationTree();

    OrganizationMegVO getOrganizationMsg(Long categoryId);

    Page<UserAndOrgPageVo> getUserMsg(Long categoryId, Long pageNum, Long pageSize);

    void insertOrg(OrganizationMegAddDTO organizationMegDTO, Long userCategoryId);

    void updateOrg(OrganizationMegDTO organizationMegDTO);

    void deleteOrg(Long categoryId,Long userCategoryId);
}
